package com.ruoyi.project.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dyun.tool.mybatis.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.dreamlu.mica.core.validation.CreateGroup;
import net.dreamlu.mica.core.validation.UpdateGroup;

import javax.validation.constraints.NotBlank;

/**
 * 字典类型表 sys_dict_type
 *
 * @author dy
 */
@TableName("sys_dict_type")
@EqualsAndHashCode(callSuper = true)
@Data
public class SysDictType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 字典名称
     */
    @NotBlank(message = "字典名称不能为空", groups = {CreateGroup.class, UpdateGroup.class})
    private String dictName;

    /**
     * 字典类型
     */
    @NotBlank(message = "字典类型不能为空", groups = {CreateGroup.class, UpdateGroup.class})
    private String dictType;

    /**
     * 备注
     */
    private String remark;
}
